package com.umsoft.smart.framework.Bean;

import java.util.HashMap;
import java.util.Map;

/**
 * 返视图对象
 */
public class View {

    /**
     * 路径
     */
    private String path;

    /**
     * 模型数据
     */
    private Map<String,Object> model;

    public View(String path){
        this.path = path;
        model = new HashMap<>();
    }

    public View addModel(String key,Object model){
        this.model.put(key,model);
        return this;
    }

    public String getPath(){
        return this.path;
    }

    public Map<String,Object> getModel(){
        return this.model;
    }
}
